import Vue from 'vue'
import Vuex from 'vuex'
import VuexPersist from 'vuex-persist'

Vue.use(Vuex)

export default new Vuex.Store({
   state: {},
   mutations: {},
   actions: {},
   modules: {},
   // 插件
   plugins: [
      new VuexPersist({
         storage: window.localStorage,
      }).plugin,
   ]
})
